<template>
  <div class="one1">
    <h3>人气推荐</h3>
    <van-card
      v-for="item in hotGoodsListArr"
      :key="item.id"
      :price="item.retail_price + `元`"
      :desc="item.goods_brief"
      :title="item.name"
      :thumb="item.list_pic_url"
      @click="clickfn(item)"
    />
  </div>
</template>

<script>
export default {
  name: "Renqi",
  props: ["hotGoodsListArr"],
  data() {
    return {};
  },
   methods: {
    clickfn(item){
       this.$router.push({ path:"/xiangqing",query:{id:item.id} });
    }
  },
};
</script>

<style lang='less' scope>
h3 {
  text-align: center;
  height: 1.33333rem;
  line-height: 1.33333rem;
  font-size: 0.53333rem;
}
.one1 van-card {
  font-size: 16px;
}
</style>